package com.etc.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author kalista
 * @Description
 * @Date 2021/5/13  17:10
 **/
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = PaymentServiceFaallback.class)
public interface PaymentService {

    @GetMapping("/payment/ok/{id}")
    Integer ok(@PathVariable("id") Integer id);

    @GetMapping("/payment/timeout")
    String timeout();

}
